<template>
  <div class="app-container">

    <!-- 搜索 -->
    <el-form :inline="true" :model="searchForm" label-width="150px" class="demo-form-inline">
      <el-form-item label="账套编码">
        <el-input v-model="searchForm.storeId" size="small" placeholder="请输入账套编码" />
      </el-form-item>
      <el-form-item label="公司名称">
        <el-input v-model="searchForm.storeId" size="small" placeholder="请输入公司名称" />
      </el-form-item>
      <el-form-item label="门店编号">
        <el-input v-model="searchForm.storeId" size="small" placeholder="请输入门店编号" />
      </el-form-item>
      <el-form-item label="门店名称">
        <el-input v-model="searchForm.storeId" size="small" placeholder="请输入门店名称" />
      </el-form-item>
      <el-form-item label="合同编号">
        <el-input v-model="searchForm.storeId" size="small" placeholder="请输入合同编号" />
      </el-form-item>
      <el-form-item label="会计年度">
        <el-input v-model="searchForm.storeId" size="small" placeholder="请输入会计年度" />
      </el-form-item>
      <el-form-item label="凭证流水号">
        <el-input v-model="searchForm.storeId" size="small" placeholder="请输入凭证流水号" />
      </el-form-item>
      <el-form-item label="是否有变更利润中心">
        <el-select v-model="searchForm.storeId" size="small" placeholder="请选择是否有变更利润中心">
          <el-option label="全部" value="0" />
          <el-option label="是" value="1" />
          <el-option label="否" value="2" />
        </el-select>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" size="small" icon="el-icon-search" @click="onSubmit">查询</el-button>
      </el-form-item>
    </el-form>

    <!-- 表格数据 -->
    <el-table v-loading="loading">
      <el-table-column type="selection" width="55" align="center" />
      <el-table-column label="合同编号" prop="contractId" :show-overflow-tooltip="true" />
      <el-table-column label="支付状态" prop="deptName" :show-overflow-tooltip="true" />
      <el-table-column label="公司名称" prop="companyName" :show-overflow-tooltip="true" />
      <el-table-column label="提交人" prop="operUser" :show-overflow-tooltip="true" />
      <el-table-column label="操作" align="center">
        <template slot-scope="scope">
          <el-button
            size="mini"
            type="text"
            icon="el-icon-edit"
            @click="handleEdit(scope.row)"
          >查看</el-button>
        </template>
      </el-table-column>
    </el-table>
    <!-- 分页 -->
    <el-pagination
      :current-page="1"
      :page-sizes="[100, 200, 300, 400]"
      :page-size="100"
      layout="total, sizes, prev, pager, next, jumper"
      :total="400"
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
    />
  </div>
</template>

<script>
export default {
  name: 'UiIndex',
  data() {
    return {
      searchForm: {
        storeId: ''
      },
      loading: true,
      formData: []

    }
  },
  methods: {
    // 搜索
    onSubmit() {
      console.log('搜索')
    },
    // 改变页面大小
    handleSizeChange(limit) {
      console.log(limit)
    },
    // 改变当前页面
    handleCurrentChange(page) {
      console.log(page)
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
